package inv.stask.logic;

import java.util.ArrayList;
import java.util.List;

public class Logger {
	final static List<Logable> loggers	= new ArrayList<Logable>();
	
	public static void registerLogger(Logable element){
		synchronized (loggers) {
			loggers.add(element);
		}
	}
	
	public static void addMessage(String message){
			for(Logable logger: loggers){
				logger.addMessage(message);
			}
	}
}
